<?php 
require_once("../include/conn.php");

$nname=$_REQUEST['name'];
$id=$_REQUEST['id'];

if($nname==1 and $id=1){

//$cname="办理站简介";
$sql_up="select * from `$tb_jj`  where id = '".$id."' ";
}
if($nname==2 and $id=2){
//$cname="办公电话";
$sql_up="select * from `$tb_jj`  where id = '".$id."' ";
}
if($nname==3 and $id=3){
//$cname="联系我们";
$sql_up="select * from `$tb_jj`  where id = '".$id."' ";
}
$cn_up=mysql_db_query($db_name,$sql_up);
$row_up = mysql_fetch_row($cn_up); 

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $row_up[1] ?></title>
<link href="Admin_Style.css" rel="stylesheet" type="text/css">
</head>

<body>
<form action="web_ok.php?id=<?php echo $id ?>&name=<?php echo $nname ?>" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checked();" >
  <table width="100%"  border="0" cellpadding="0" cellspacing="2" class="tdbg">
    <tr>
      <th colspan="2" class="topbg">修改<?php echo $row_up[1] ?></th>
    </tr>
    <tr>
      <td width="119" align="right">&nbsp;</td>
      <td width="846"><input name="content" type="hidden" id="content1" value="<?php echo htmlspecialchars($row_up[2]); ?>" >
	  <iframe id="eWebEditor1" src="../ewebeditor/ewebeditor.htm?id=content1&style=standard650&skin=office2003" frameborder="0" scrolling="no" width="650" height="450"></iframe>
	  </td>
    </tr>
    <tr>
      <td align="right">&nbsp;</td>
      <td><input type="submit" name="Submit" value="提交">
        <input name="action" type="hidden" id="action" value="update">
      <input type="reset" name="Submit" value="重置"></td>
    </tr>
  </table>
</form>
</body>
</html>
